package com.ruoyi.youtian.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 报警公告消息阅读记录对象 t_fault_notify_announce_user
 * 
 * @author ruoyi
 * @date 2022-12-08
 */
public class FaultNotifyAnnounceUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 公告编号 */
    @Excel(name = "公告编号")
    private Long announceId;

    /** 接收用户ID */
    @Excel(name = "接收用户ID")
    private Long recipientUserId;

    /** 阅读状态 */
    @Excel(name = "阅读状态")
    private String state;

    /** 阅读时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "阅读时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date readTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAnnounceId(Long announceId) 
    {
        this.announceId = announceId;
    }

    public Long getAnnounceId() 
    {
        return announceId;
    }
    public void setRecipientUserId(Long recipientUserId) 
    {
        this.recipientUserId = recipientUserId;
    }

    public Long getRecipientUserId() 
    {
        return recipientUserId;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setReadTime(Date readTime) 
    {
        this.readTime = readTime;
    }

    public Date getReadTime() 
    {
        return readTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("announceId", getAnnounceId())
            .append("recipientUserId", getRecipientUserId())
            .append("createTime", getCreateTime())
            .append("state", getState())
            .append("readTime", getReadTime())
            .toString();
    }
}
